package com.example.spring.bean.load09inject;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

/**
 * 使用@Autowired 注入定义的 bean
 * <p>
 * <p>
 */
@Repository
public class MailDao {
    @Autowired
    private Mail mail;

    public void print(){
        System.out.println(mail.toString());
    }
}
